using System.Collections.Generic;

namespace NetDns
{
    public interface IResolver
    {
        TResourceRecord Query<TResourceRecord>(string hostname) where TResourceRecord : IResourceRecord;
        IEnumerable<TResourceRecord> QueryAll<TResourceRecord>(string hostname) where TResourceRecord : IResourceRecord;
        IEnumerable<IResourceRecord> QueryAll(Question question);
    }
}
